package lab02.test06;
import java.util.Scanner;
public class Test06 {
    public static void main(String[] args) {
        System.out.println("测试三角形类");
      Scanner sc = new Scanner(System.in);
     //float oneside = sc.nextFloat();
     //float twoside = sc.nextFloat();
     //float threeside = sc.nextFloat();
     Triangle t = new Triangle(3,5,4 );

     if(t.triangle()==true){
         System.out.println("该三边能构成三角形");
     }
     else{
         System.out.println("该三边不能构成三角形");
     }
     System.out.println("三角形的面积："+t.Area());
     System.out.println("三角形的周长："+t.Perimeter());

     System.out.println("测试梯形类");
    // double upbottom = sc.nextDouble();
     //double downbottom = sc.nextDouble();
     //double height = sc.nextDouble();
     Ladder l = new Ladder(3,6,9);
     System.out.println("梯形面积："+l.Area());

     System.out.println("测试圆形类");
    // double radius = sc.nextDouble();
     Circle c = new Circle(2);
     System.out.println("圆的面积："+c.Area());
     System.out.println("圆的周长："+c.Perimeter());
    }
}
